package com.uye.framework.exception;

import com.uye.framework.util.ResponseCodes;

@SuppressWarnings("serial")
public class BadRequestException extends InternalServerException {

	/**
	 * Constructs an exception using the supplied message and service name.
	 * 
	 * @param message
	 *            Why the exception happened
	 * @param serviceName
	 *            Name of the failed service
	 */
	public BadRequestException(final String serviceName, final String message ) {
		super(serviceName, message );
	}

	/**
	 * Constructs an exception using the supplied service name.
	 * 
	 * @param serviceName
	 *            Name of the failed service
	 */
	public BadRequestException(final String serviceName) {
		super(serviceName);
	}

	@Override
	public String getErrorCode() {
		return ResponseCodes.BASE_ERROR_CODES.ERROR_400.toString();
	}

}
